package chapter3;

public class  ex1{
    private int a;
    private int b;

    public ex1(int a, int b) {
        this.a = 10;
        this.b = 5;
    }

    public ex1() {

    }

    public  int AddAB(){
        return a+b;
    }

    public  int SubAB(){
        return a>b?a-b:b-a;
    }

    public  int MultiAB(){
        return a*b;
    }

    public  int DivAB(){
        return (double)a>b?a/b:b/a;
    }



}
